﻿using AutoMapper;
using Enferno.Public.Web.Mappers.BasketProfiles;
using Enferno.Public.Web.Mappers.PromotionProfiles;

namespace Enferno.Public.Web.ShoppingBasket.Mappers
{
    public class ShoppingBasketProfile : Profile
    {
        protected override void Configure()
        {
            Mapper.Configuration.AddProfile<BasketToBasketModelProfile>();
            Mapper.Configuration.AddProfile<BasketItemModelToBasketItemProfile>();

            Mapper.Configuration.AddProfile<BasketModelToBasketProfile>();
            Mapper.Configuration.AddProfile<BasketItemToBasketItemModelProfile>();

            Mapper.Configuration.AddProfile<BasketModelToBasketViewModelProfile>();
            Mapper.Configuration.AddProfile<BasketItemModelToBasketItemViewModelProfile>();

            Mapper.Configuration.AddProfile<BasketViewModelToBasketModelProfile>();
            Mapper.Configuration.AddProfile<BasketItemViewModelToBasketItemModelProfile>();

            Mapper.Configuration.AddProfile<PromotionProfile>();
        }
    }
}
